package com.lxb.eduservice.mapper;

import com.lxb.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxb.eduservice.vo.course.CoursePublishVo;
import com.lxb.eduservice.vo.front.CourseWebVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author lixuebin
 * @since 2022-11-06
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据ID获取课程发布信息
     *
     * @param id
     * @return
     */
    CoursePublishVo getCoursePublishById(String id);

    /**
     * 根据课程id，查询课程信息
     *
     * @param courseId
     * @return
     */
    CourseWebVo selectByCourseIDInfo(String courseId);
}
